package com.samuel.learing;


/**
 * @company: mamahao.com
 * @author: taozhaoyang
 * @time: 2017-12-21 17:18
 * @version: 1.0
 * @desc:
 **/
public class Person {

    private Integer id;

    private String name;

    private Integer age;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    @Override
    public String toString() {
        return "Person[id="+id+",name="+name+",age="+age+"],";
    }


    public static void main(String[] args) {
        Person person = new Person();
        System.out.println(person.getId()==null);

        Student student = new Student();
        System.out.println(student.getId()==null);

    }
}